//
//  QMUIButton+Extension.m
//  RuiHeAppApp
//
//  Created by Yan Chen on 2024/4/8.
//

#import "QMUIButton+Extension.h"

@implementation QMUIButton (Extension)
+(QMUIButton*)buttonWithTitle:(NSString*)title titleColor:(UIColor*)titleColor titleFont:(UIFont*)font
{
    QMUIButton *btn = [[QMUIButton alloc]init];
    [btn setTitle:title forState:UIControlStateNormal];
    [btn setTitleColor:titleColor forState:UIControlStateNormal];
    btn.titleLabel.font = font;
    return btn;
}

+(QMUIButton*)buttonWithImage:(NSString*)image
{
    QMUIButton *btn = [[QMUIButton alloc]init];
    [btn setImage:[UIImage imageNamed:image] forState:UIControlStateNormal];
    return btn;
}
@end
